function getLunbo() {
	var btns = document.getElementsByTagName("button"), //[button,button]
		imgs = document.getElementsByTagName("img"), //[img,img,img,img];
		lis = document.getElementsByTagName("li"), //[li,li,li]
		j = 0; //记录位置
	for (var i in btns) {
		btns[i].onclick = function () {
			if (this.innerText == ">") {
				animate(1);
			} else {
				animate(-1);
			}
		}
	}

	for (var i in lis) {
		lis[i].onclick = function () {
			animate(0, this)
		}
	}

	timer = setInterval(function () {
		animate(1)
	}, 2000)

	car.onmouseover = function () {
		clearInterval(timer);
	}

	car.onmouseout = function () {
		timer = setInterval(function () {
			animate(1)
		}, 2000)
	}

	function animate(num, li) {//num=0 li=this
		if (num) {
			j += num;
			if (j == lis.length) {
				j = 0
			} else if (j == -1) {
				j = lis.length - 1;
			}
		} else {
			j = parseInt(li.getAttribute("zy"));
		}
		for (var i = 0; i < lis.length; i++) {
			lis[i].className = "";
			imgs[i].className = "";
		}
		imgs[j].className = "active";
		lis[j].className = "active";
	}
}
getLunbo();
function getOp(){
	var divs=document.querySelectorAll(".team_banxin_bottom_left");
	divs=Array.from(divs);
	divs.forEach(div=>{
		div.onclick=function(){
			open("../html/team.html","_blank");
		}
	})
}
getOp();
function loadJScript() {
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = '//api.map.baidu.com/api?type=webgl&v=1.0&ak=Pv42Y43FqwGB9SUwZa68nKTFLh623fv0&callback=init';
    document.body.appendChild(script);
}
function init() {
    var map = new BMapGL.Map('container'); // 创建Map实例
    var point = new BMapGL.Point(106.518762,29.542507); // 创建点坐标
    map.centerAndZoom(point, 19);
    map.enableScrollWheelZoom(); // 启用滚轮放大缩小
    map.enableScrollWheelZoom(true);
    var marker1 = new BMapGL.Marker(new BMapGL.Point(106.518762,29.542507));
    map.addOverlay(marker1);

}
window.onload = loadJScript; // 异步加载地图